/**
 * 
 */
package uicgas.register.remotecmds;

import uicgas.globaldata.MessagePayload;
import uicgas.register.Comunications;
import uicgas.register.RegisterLogic;
import uicgas.communication.*;

/**
 * @author Steve
 *
 */
public class NotifyAssistance implements RemoteCommand
{
	private RegisterLogic register;
	
	public NotifyAssistance(RegisterLogic register2, Communication communication)
	{
		this.register = register2;
	}

	public void executeRemoteCommand(RegisterLogic Register)
	{
		this.register = Register;
	}
	
	@Override
	public void executeRemoteCommand()
	{
		//this.register.notifyAssistance();
	}

	public int executeRemoteCommand(MessagePayload inData)
	{
		if (inData != null)
		{
			this.register.NotifyAssistance(inData);
			return 0;
		}
		else
			return -1;
	}
}
